<?php
namespace submodule\controllers;

use Yii;
//use backend\modules\mobo\models\BackendMenu;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;


use submodule\models\Models;
use submodule\models\ModelsField;
use common\components\Tree;
use base\YiiMobo;

use \common\models\DIYModel;

class SubmodelController extends \submodule\base\BaseSubmodelController
{


	
	
	
	
	public function init(){
		
		parent::init();
		self::reModels();
		
		
		
		
	}
	
	public function reModels(){
		$this->submodel->controllerUrl = [
		    'index'=> 'submodel/index',
			'create' => 'submodel/create',
			'update'=> 'submodel/update',
			'batch'=> 'submodel/batch',
			'view'=> 'submodel/view',
			'delete'=> 'submodel/delete',
			'status'=> 'submodel/status'
		];
		
		$this->submodel->viewFiles = [
		    'index'=> "@submodule/views/submodel/submodel_index",
		    'form'=> "@submodule/views/submodel/submodel_form",

		];
		
		
	}
	/**
	 * @return array action filters
	 */
	public function filters() {
     return array( 
        array('auth.filters.AuthFilter'),
            );
        }



	


}
